QT      += core gui concurrent
greaterThan(QT_MAJOR_VERSION,5):QT += core5compat
CONFIG  += c++2a plugin
DESTDIR = ../../../../../dist/plugins
TARGET  = sailmipim_plugin_docview_pdf
TEMPLATE = lib

DEFINES +=_HAS_DEPRECATED_RESULT_OF

INCLUDEPATH += D:/Devlibs/poppler-23.11.0/qt5/src           \
               D:/Devlibs/poppler-23.11.0/build/qt5/src     \
               ../../../../interfaces               \
               ../../../../util/sailmipim_util_core        \
               ../../../../util/sailmipim_util_sll    \
               ../../../../util/sailmipim_util_threads    \
               ../../../../xsd                       \
               ../../interfaces


LIBS += -LD:/Devlibs/poppler-23.11.0/build/Release          \
        -LD:/Devlibs/poppler-23.11.0/build/qt5/src/Release  \
        -L../../../../../dist           \
        -L../../../../../dist/plugins   \
        -lsailmipim_util_core                  \
        -lsailmipim_util_sll               \
        -lsailmipim_util_threads               \
        -lsailmipim_xsd                        \
        -lpoppler-qt5                   \
        -lpoppler

DISTFILES += \
    freedesktop/leechcraft-docview-pdf-qt5.desktop \
    sailmipim_docview_pdf_en.ts \
    sailmipim_docview_pdf_settings.xml \
    share/global_icons/plugins/default/docview_pdf.svg

HEADERS += \
    annotations.h \
    document.h \
    fields.h \
    links.h \
    pdf.h \
    pendingfontinforequest.h \
    qt5compat.h \
    xmlsettingsmanager.h

SOURCES += \
    annotations.cpp \
    document.cpp \
    fields.cpp \
    links.cpp \
    pdf.cpp \
    pendingfontinforequest.cpp \
    xmlsettingsmanager.cpp


